use napi_derive_ohos::napi;
use std::collections::HashMap;

#[napi(object)]
pub struct VttStyle {
    pub selector: Option<String>,
    pub entries: HashMap<String, String>,
}

#[napi(object)]
pub struct VttLine {
    pub text: String,
    pub end_timestamp_millis: i64,
    pub identifier: Option<String>,
    pub start_timestamp_millis: i64,
    pub settings: HashMap<String, Option<String>>,
}

#[napi(object)]
pub struct VttRegion {
    pub scroll: bool,
    pub id: Option<String>,
    pub width: Option<f64>,
    pub lines: Option<u32>,
    pub region_anchor_x: Option<f64>,
    pub region_anchor_y: Option<f64>,
    pub viewport_anchor_x: Option<f64>,
    pub viewport_anchor_y: Option<f64>,
}
